package org.yzz.base.mapper;


import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.yzz.base.query.BaseQuery;
import java.io.Serializable;
import java.util.List;

@Component
public interface BaseMapper<T> {
    void update(T t);
    void insert(T t);
    void delete(Serializable id);
    void batchDelete(List<Long> ids);
    T selectById(Serializable id) ;
    List<T> selectAll();
    List<T> queryPage(BaseQuery menuQuery);
    Long countTotal(BaseQuery menuQuery);
}
